import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
      home: Scaffold(
    appBar: AppBar(
      title: const Text("你好flutter"),
    ),
    body: const MyApp(),
  )));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  void onPressed() {
    print("onPressed");
  }

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        IconButton(
          onPressed: onPressed,
          icon: const Icon(
            Icons.shop,
            color: Colors.lightBlue,
            size: 40,
          ),
        ),
        IconButton(
          onPressed: onPressed,
          icon: const Icon(
            Icons.house,
            color: Colors.lightGreen,
            size: 40,
          ),
        ),
        IconButton(
          onPressed: onPressed,
          icon: const Icon(
            Icons.fire_truck,
            color: Colors.red,
            size: 40,
          ),
        ),
      ],
    );
  }
}
